package com.ch.forum.bo;

import java.io.Serializable;

public class ResponseResult implements Serializable {

    private boolean isSuccess;

    private String message;

    private String code;

    private Object data;


    public ResponseResult(boolean isSuccess){
        this.isSuccess = isSuccess;
    }

    public ResponseResult(boolean isSuccess, String message){
        this.isSuccess = isSuccess;
        this.message = message;
    }

    public ResponseResult(boolean isSuccess, String message, Object data){
        this.isSuccess = isSuccess;
        this.message = message;
        this.data = data;
    }

    public ResponseResult(boolean isSuccess, String code, String message){
        this.isSuccess = isSuccess;
        this.code = code;
        this.message = message;
    }

    public boolean isSuccess() {
        return isSuccess;
    }

    public void setSuccess(boolean success) {
        isSuccess = success;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
